package mju.cxf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author 乐昌新
 * @since 2024-10-28
 */
@Setter
@Getter
@TableName("cxf_comments")
@ApiModel(value = "Comments对象", description = "评论表")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("employee_id")
    private Integer employeeId;

    @TableField("product_id")
    private Integer productId;

//    @TableField("order_id")
//    private Integer orderId;

    @TableField("content")
    private String content;

    @TableField("comment_time")
    private LocalDateTime commentTime;

    @TableField("picture")
    private String picture;

    @TableField("likes")
    private Integer likes;

    @TableField("status")
    private Integer status;


    @Override
    public String toString() {
        return "Comments{" +
        "id=" + id +
        ", userId=" + userId +
        ", employeeId=" + employeeId +
        ", productId=" + productId +
        ", content=" + content +
        ", commentTime=" + commentTime +
        ", picture=" + picture +
        ", likes=" + likes +
        ", status=" + status +
        "}";
    }


}
